export function getToken() {
	return uni.getStorageSync(TokenKey)
}

export function getUserAdmin() {
	return uni.getStorageSync(UserAdmin)
}

export function filterPhone(data) {
	if (data) {
		let start = data.substring(0, 3);
		let end = data.substring(data.length - 4, data.length);
		return start + '****' + end;
	} else {
		return '';
	}
}
export function filterName(data) {
	if (data) {
		let end = data.substring(data.length - 1, data.length);
		return '**' + end;
	} else {
		return '';
	}
}
export function filterIdNumber(data) {
	if (data) {
		let start = data.substring(0, 2);
		let end = data.substring(data.length - 1, data.length);
		return start + '**************' + end;
	} else {
		return '';
	}
}

export function removeToken() {
	return uni.removeStorageSync(TokenKey)
}